export class AudioClass {
    el = document.createElement("audio");
    constructor(src) {
      this.el.src = src;
      this.el.autoplay = true;
      this.el.play()
    }
    loop() {
      this.el.loop = true;
      return this;
    }
    volume(value) {
      this.el.volume = value;
      return this;
    }
    destory() {
      this.el?.pause?.();
      // @ts-ignore
      this.el = null;
      return this;
    }
}